import {ParamsType} from "@ant-design/pro-components";
import {addData, deleteById, listData, pageData, updateById} from "@/services/base-request";

export const pageFaqCategoryAPI = (params: ParamsType) => {
  return pageData("/faqCategory", params)
}

export const listFaqCategoryAPI = (params: DynamicObject) => {
  return listData("/faqCategory", params)
}

export const addFaqCategoryAPI = (data: API.IFaqCategory) => {
  return addData("/faqCategory", data)
}

export const updateFaqCategoryAPI = (data: API.IFaqCategory) => {
  return updateById("/faqCategory", data)
}

export const deleteFaqCategoryAPI = (id: string | number) => {
  return deleteById("/faqCategory", id)
}
